package com.spr.service.impl;

import com.spr.mapper.SprDeviceCompleteRecordMapper;
import com.spr.mapper.SprDeviceStatusRecordMapper;
import com.spr.pojo.SprDeviceStatusRecord;
import com.spr.service.SprDeviceCompleteRecordService;
import com.spr.vo.SprDeviceCompleteRecordVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class SprDeviceCompleteRecordServiceImpl implements SprDeviceCompleteRecordService {
    @Autowired
    private SprDeviceCompleteRecordMapper sprDeviceCompleteRecordMapper;

    @Autowired
    private SprDeviceStatusRecordMapper sprDeviceStatusRecordMapper;

    @Override
    public List<SprDeviceCompleteRecordVO> getCompleteRecord() {
        List<SprDeviceCompleteRecordVO> sprDeviceCompleteRecordVOS=sprDeviceCompleteRecordMapper.getCompleteRecord();
        return sprDeviceCompleteRecordVOS;
    }

    @Override
    public List<SprDeviceStatusRecord> realtimeStatusInformation() {
        return  sprDeviceStatusRecordMapper.realtimeStatusInformation();
    }
}
